package day240523.StringSplice;

public class T {
    public static void main(String[] args) {

    }
    private static void String(){
        String string="";
        System.out.println(string+"abc"+"xyz"+"123");
    }
    private static void StringBuffer(){
        StringBuffer stringBuffer=new StringBuffer();
        stringBuffer.append("abc");
        stringBuffer.append("xyz").append("123");
        System.out.println(stringBuffer);
    }
    private static void StringBuilder(){
        StringBuilder stringBuilder=new StringBuilder();
        stringBuilder.append("abc").append("xyz").append("123");
        System.out.println(stringBuilder);
    }
}